<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <h3>
    --- v-bind
      --语法 :---- v-bind:src="..." <br>
      ---动态的设置 html 的标签属性 >>> src url title ... <br>
      --简写 :---------- :src="..."
  </h3>
<hr>

  <script src="../js/vue.js"></script>
  
 

    <div id="app">
      <img :src="src" :style="style"  alt="">
    </div>

    <script>
     const vm = new Vue({
        el:'#app',
        data:{
          src : './imgs/xx.jpeg',
          style:'width:100%'
        }
      })
    </script>
</body>
</html>